#include "heroplane.h"

heroplane::heroplane()
{

    //初始化加载飞机图片资源
        m_Plane.load(":/myImage/images/玩家头像.jpg");

    //初始化坐标
        m_X = 512 * 0.5 - m_Plane.width()*0.5;
        m_Y = 768 - m_Plane.height();

    //初始化矩形框
        m_Rect.setWidth(m_Plane.width());
        m_Rect.setHeight(m_Plane.height());
        m_Rect.moveTo(m_X,m_Y);

}

void heroplane::setPosition(int x, int y)
{
    m_X = x;
    m_Y = y;
    m_Rect.moveTo(m_X,m_Y);
}

void heroplane::shoot()
{

}
